import 'package:flutter/cupertino.dart';
import 'package:part_time_job_pro/common/widgets/auto_keep_live_view.dart';
import 'package:part_time_job_pro/pages/offer/full_offer_list/view.dart';
import 'package:part_time_job_pro/pages/offer/part_offer_list/view.dart';
import 'package:part_time_job_pro/pages/offer/school_offer_list/view.dart';

class OfferState {
  //标题
  final tabBarList = [
    {"id": 0, "name": "兼职"},
    {"id": 1, "name": "全职"},
    {"id": 2, "name": "校招"}
  ];

  ///主页界面子页面
  late List<Widget> mainIndexStackPages;

  //当前选中tabbar
  late int currentIndex;

  //id
  late int? currentId;

  //name
  late String? currentName;

  OfferState() {
    currentId = 0;
    currentName = "兼职";
    mainIndexStackPages = [
      KeepAliveWrapper(child: PartOfferListPage()),
      KeepAliveWrapper(child: FullOfferListPage()),
      KeepAliveWrapper(child: SchoolOfferListPage()),
    ];
  }
}
